import http from '@src/util/http';

/**
 *
 * @description 个人中心-获取工单列表
 */
export function getTaskList (params) {
  return http.post('/api/workbench/outside/person/getTaskList', params)
}

/**
 *
 * @description 个人中心-获取客户列表
 */
 export function getCustomertList (params) {
  return http.post('/api/workbench/outside/person/getCustomertList', params)
}

/**
 *
 * @description 个人中心-获取事件列表
 */
 export function getEventList (params) {
  return http.post('/api/workbench/outside/person/getEventList', params)
}


/**
 *
 * @description 个人中心-获取备件列表
 */
 export function getPartList (params) {
  return http.post('/api/workbench/outside/person/getPartList', params)
}


/**
 *
 * @description 个人中心-获取日历
 */
 export function getCalendar (params) {
  return http.post('/api/workbench/outside/person/getCalendar', params)
}


/**
 *
 * @description 个人中心-获取会话
 */
 export function getConversationForPersonal (params) {
  return http.post('/api/workbench/outside/person/getConversationForPersonal', params)
}


/**
 *
 * @description 个人中心-获取通话记录
 */
 export function getCallRecordList (params) {
  return http.post('/api/workbench/outside/person/getCallRecordList', params)
}

/**
 *
 * @description 个人中心-更换头像
 */
 export function headImage (params) {
  return http.post('/dd/user/headImage', params,false)
}

/**
 *
 * @description 个人中心-添加用户卡片
 */
 export function addUserFieldForPersonCard (params) {
  return http.post('/api/user/outside/user/addUserFieldForPersonCard', params)
}

/**
 *
 * @description 个人中心-获取用户卡片
 */
 export function getUserFieldForPersonCard (params) {
  return http.get('/api/user/outside/user/getUserFieldForPersonCard', params)
}

/**
 *
 * @description 个人中心-获取所有卡片
 */
 export function fill (params) {
  return http.post('/api/workbench/outside/indicator/data/fill/two', params)
}
